package com.example.langchain4j.service;

import com.example.langchain4j.mapper.ReservationMapper;
import com.example.langchain4j.pojo.Reservation;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ReservationService {
    @Resource
    private ReservationMapper reservationMapper;
    public void insert(Reservation reservation){
        reservationMapper.insert(reservation);
    }
    public Reservation selectForPhone(String phone){
        return reservationMapper.selectForPhone(phone);
    }
}
